<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{{ title | trim }}</title>
</head>
<body>
<iframe target="_blank" src='<c:url value="/templates/pdfjs/web/viewer.html" />?file=<c:url value="/111.pdf" />' width="100%" height="800"></iframe>
<a href="/pdfjs/web/viewer.html?file=/申报书扫描件（刘芳）.pdf">点击测试</a>
 <a href="templates/pdfjs/web/viewer.html" target="_blank">test</a>
 <a href='pdfjs/web/viewer.html?file=../../output.pdf' target="_blank">111111111</a>

    <iframe
            id="myiframe"
            name="myiframe"
            height="100%"
            width="100%"
            src="/a"
            scrolling="auto"
            frameborder="0"
            onload="changeFrameHeight()"
    >
    </iframe>

</body>

<script>
    function changeFrameHeight() {
        console.log('123');
        var iframe = document.getElementById("myiframe");
        iframe.height = document.documentElement.clientHeight;
    }
    //onresize属性可以用来获取或设置当前窗口的resize事件的事件处理函数
    //onresize事件会在窗口或框架被调整大小时发生
    window.onresize = function() {
        changeFrameHeight();
    }
</script>

</html>

</html>
